#include "PacketConnection.h"
#include "../NetBuf.h"

PacketSetupConnecion::PacketSetupConnecion( int _id,int _checksum )
{
	m_type = Type_SetupConnection;
	m_nConID = _id;
	m_nCheckSum = _checksum;
}

bool PacketSetupConnecion::write( SimpleBuf& pBuf )
{
	bool bOK = pBuf.Write(&m_nConID,sizeof(m_nConID));
	bOK &= pBuf.Write(&m_nCheckSum,sizeof(m_nCheckSum));
	return bOK;
}

bool PacketSetupConnecion::read( SimpleBuf& pBuf )
{
	bool bOK = pBuf.Read(&m_nConID,sizeof(m_nConID));
	bOK &= pBuf.Read(&m_nCheckSum,sizeof(m_nCheckSum));
	return bOK;
}

void PacketSetupConnecion::process(void*)
{
}
